/**
 * 路由
 */
const Koa = require('koa');
const app = new Koa();
app.use(async (ctx) =>{
	let url = ctx.request.url; //地址栏的输入路径
	ctx.body = url;
})

app.listen(3000, ()=>{
	console.log('[demo] server is starting at port 3000');
})
